package com.project.bean;

import java.util.Date;

public class CommentBean {
    private Integer cmId;
    //动态的id
    private Integer cmPId;
    //被评论人的id
    private Integer cmUId;
    //评论的内容
    private String cmMessage;
    //评论的时间
    private Date cmTime;
    //评论的日期
    private String cmDate;
    //发表评论的人
    private UserBean userBean;
       

    public String getCmDate() {
		return cmDate;
	}

	public void setCmDate(String cmDate) {
		this.cmDate = cmDate;
	}

	public Integer getCmId() {
        return cmId;
    }

    public void setCmId(Integer cmId) {
        this.cmId = cmId;
    }

    public Integer getCmPId() {
        return cmPId;
    }

    public void setCmPId(Integer cmPId) {
        this.cmPId = cmPId;
    }

    public Integer getCmUId() {
        return cmUId;
    }

    public void setCmUId(Integer cmUId) {
        this.cmUId = cmUId;
    }

    public String getCmMessage() {
        return cmMessage;
    }

    public void setCmMessage(String cmMessage) {
        this.cmMessage = cmMessage == null ? null : cmMessage.trim();
    }

    public Date getCmTime() {
        return cmTime;
    }

    public void setCmTime(Date cmTime) {
        this.cmTime = cmTime;
    }

    public UserBean getUserBean() {
        return userBean;
    }

    public void setUserBean(UserBean userBean) {
        this.userBean=userBean;
    }

	@Override
	public String toString() {
		return "CommentBean [cmId=" + cmId + ", cmPId=" + cmPId + ", cmUId=" + cmUId + ", cmMessage=" + cmMessage
				+ ", cmTime=" + cmTime + ", cmDate=" + cmDate + ", userBean=" + userBean + "]";
	}


    
    
}